package com.csgsystems.im.survey.persistence.hibernate;

import java.util.List;

import org.hibernate.Query;
import org.hibernate.Session;

import com.csgsystems.im.hibernate.HibernateDao;
import com.csgsystems.im.survey.Language;
import com.csgsystems.im.survey.persistence.LanguageDao;


public class LanguageDaoImpl extends HibernateDao<Language, Long> implements LanguageDao {

	@Override
	public List<Language> findAll() {
		Session session = sessionFactory.getCurrentSession();
		Query query =  session.createQuery("from Language");
		return query.list();
		
	}

}
